package goods

import (
	"context"
	"google.golang.org/grpc/codes"
	"google.golang.org/grpc/status"
	pb "rpc/proto/goods"
	"rpc/server"
)

type RevicGoods struct {
	pb.UnimplementedGoodsServer
}

func (s *RevicGoods) GoodsCreate(ctx context.Context, in *pb.GoodsCreateReq) (*pb.GoodsCreateResp, error) {
	_, err := server.GoodsCreate(in)
	if err != nil {
		return nil, status.Errorf(codes.Unimplemented, "method GoodsCreate not implemented")
	}
	return &pb.GoodsCreateResp{}, nil
}
func (s *RevicGoods) GetGoods(ctx context.Context, in *pb.GetGoodsReq) (*pb.GetGoodsResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetGoods not implemented")
}
